package com.engine4cloud.tdf.education.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serializable;

/**
 * 教育资源-文件-请求对象
 *
 * @author wenjie
 * @date 2024-07-31 10:25:56
 */
@Data
@Schema(description = "教育资源-文件-请求对象")
public class EduActivitiesFileDTO implements Serializable {
    /**
     * 主键
     */
    @Schema(description = "主键", example = "123456789")
    private Long id;

    /**
     * 文件存放路径
     */
    @Schema(description = "文件存放路径", example = "/admin/abc.pdf")
    @NotBlank(message = "文件存放路径不能为空")
    private String url;

    /**
     * 文件名
     */
    @Schema(description = "文件名", example = "张三的照片.pdf")
    private String name;
}